package com.lzx.adx.report.enums;

public enum CZCovertQttEventTypeEnums {

    REGISTER_APP("register","0","产品注册对应媒体激活"),
    LOGIN_APP("login","6","产品登录/次留等于媒体次留"),
    ;



    private String pCode;

    private String tsfCode;

    private String msg;

    public String getElmCode() {
        return pCode;
    }

    public String getTsfCode() {
        return tsfCode;
    }

    public String getMsg() {
        return msg;
    }


    public static String getQttCode(String pCode){
        for (CZCovertQttEventTypeEnums value : CZCovertQttEventTypeEnums.values()) {
            if(value.pCode.equals(pCode)){
                return value.tsfCode;
            }
        }
        return  null;
    }


    CZCovertQttEventTypeEnums(String code, String tsfCode, String msg) {
        this.pCode = code;
        this.tsfCode = tsfCode;
        this.msg = msg;
    }
}
